home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / idl / bonobo-activation-2.0 / Bonobo_ActivationContext.idl < prev    next >
Text File  |  2006-01-09  |  5KB  |  117 lines

  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
  2. /*
  3.  *  Bonobo_ActivationContext.idl:
  4.  *
  5.  *  Copyright (C) 1999, 2000 Red Hat, Inc.
  6.  *  Copyright (C) 1999, 2000 Eazel, Inc.
  7.  *
  8.  *  This library is free software; you can redistribute it and/or
  9.  *  modify it under the terms of the GNU General Public License as
  10.  *  published by the Free Software Foundation; either version 2 of the
  11.  *  License, or (at your option) any later version.
  12.  *
  13.  *  This library is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  *  General Public License for more details.
  17.  *
  18.  *  You should have received a copy of the GNU General Public License
  19.  *  along with this library; if not, write to the Free Software
  20.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  *
  22.  *  Authors: Elliot Lee <sopwith@redhat.com>,
  23.  *           Maciej Stachowiak <mjs@noisehavoc.org>
  24.  *
  25.  */
  26.  
  27. #ifndef __BONOBO_ACTIVATION_CONTEXT_IDL__
  28. #define __BONOBO_ACTIVATION_CONTEXT_IDL__
  29.  
  30. #ifndef __Bonobo_ActivationContext_COMPILATION
  31. #ifdef  __ORBIT_IDL__
  32. %{
  33. #pragma include_defs bonobo-activation/Bonobo_ActivationContext.h
  34. %}
  35. #pragma inhibit push
  36. #endif
  37. #endif
  38.  
  39. #include <Bonobo_Unknown.idl>
  40. #include <Bonobo_Activation_types.idl>
  41.  
  42. /* ObjectDirectory needs a forward declaration of ActivationContext */
  43. module Bonobo {
  44.         interface ActivationContext;
  45.         interface ActivationClient;
  46. };
  47.  
  48. #include <Bonobo_ObjectDirectory.idl>
  49.  
  50. module Bonobo {
  51.         interface ActivationClient : Bonobo::Unknown {
  52.                 oneway void resetCache ();
  53.                 long getVersion ();
  54.         };
  55.  
  56.         typedef sequence<ObjectDirectory> ObjectDirectoryList;
  57.  
  58.         interface ActivationContext : Bonobo::Unknown {
  59.                 readonly attribute ObjectDirectoryList directories;
  60.                 readonly attribute ServerInfoList      servers;
  61.  
  62.                 oneway void addClient (in ActivationClient client,
  63.                                        in string           locales);
  64.  
  65.                 void addDirectory    (in ObjectDirectory dir) raises (Bonobo::Activation::AlreadyListed);
  66.                 void removeDirectory (in ObjectDirectory dir) raises (Bonobo::Activation::NotListed);
  67.  
  68.                 ServerInfoList query (in string             requirements,
  69.                                       in Bonobo::StringList selection_order)
  70.                         raises (Bonobo::Activation::ParseFailed,
  71.                                 Bonobo::Activation::IncompleteContext)
  72.                         context ("username", "hostname");
  73.  
  74.                 ActivationResult activateMatching (in string                        requirements,
  75.                                                    in Bonobo::StringList            selection_order,
  76.                                                    in Bonobo::ActivationEnvironment environment,
  77.                                                    in ActivationFlags               flags)
  78.                         raises (Bonobo::Activation::ParseFailed,
  79.                                 Bonobo::Activation::IncompleteContext,
  80.                                 Bonobo::GeneralError)
  81.                         context ("username", "hostname");
  82.                 ActivationResult activateMatchingFull (in string                        requirements,
  83.                                                        in Bonobo::StringList            selection_order,
  84.                                                        in Bonobo::ActivationEnvironment environment,
  85.                                                        in ActivationFlags               flags,
  86.                                                        in ActivationClient              client)
  87.                         raises (Bonobo::Activation::ParseFailed,
  88.                                 Bonobo::Activation::IncompleteContext,
  89.                                 Bonobo::GeneralError)
  90.                         context ("username", "hostname");
  91.  
  92.                 ActivationResult activateFromAid (in ActivationID    aid,
  93.                                                   in ActivationFlags flags)
  94.                         raises (Bonobo::Activation::ParseFailed,
  95.                                 Bonobo::Activation::IncompleteContext,
  96.                                 Bonobo::GeneralError)
  97.                         context ("username", "hostname");
  98.                 ActivationResult activateFromAidFull (in ActivationID     aid,
  99.                                                       in ActivationFlags  flags,
  100.                                                       in ActivationClient client)
  101.                         raises (Bonobo::Activation::ParseFailed,
  102.                                 Bonobo::Activation::IncompleteContext,
  103.                                 Bonobo::GeneralError)
  104.                         context ("username", "hostname");
  105.  
  106.                 long getVersion ();
  107.         };
  108. };
  109.  
  110. #ifndef __Bonobo_ActivationContext_COMPILATION
  111. #ifdef  __ORBIT_IDL__
  112. #pragma inhibit pop
  113. #endif
  114. #endif
  115.  
  116. #endif
  117.